home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / SOURCE / HALOS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-08  |  3.4 KB  |  91 lines  |  [TEXT/CWIE]

  1. /****************************************************************************
  2. *                   halos.h
  3. *
  4. *  This module contains all defines, typedefs, and prototypes for HALOS.C.
  5. *
  6. *  from Persistence of Vision(tm) Ray Tracer
  7. *  Copyright 1996 Persistence of Vision Team
  8. *---------------------------------------------------------------------------
  9. *  NOTICE: This source code file is provided so that users may experiment
  10. *  with enhancements to POV-Ray and to port the software to platforms other
  11. *  than those supported by the POV-Ray Team.  There are strict rules under
  12. *  which you are permitted to use this file.  The rules are in the file
  13. *  named POVLEGAL.DOC which should be distributed with this file. If
  14. *  POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  15. *  Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  16. *  Forum.  The latest version of POV-Ray may be found there as well.
  17. *
  18. * This program is based on the popular DKB raytracer version 2.12.
  19. * DKBTrace was originally written by David K. Buck.
  20. * DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  21. *
  22. *****************************************************************************/
  23.  
  24.  
  25. #ifndef HALOS_H
  26. #define HALOS_H
  27.  
  28. /*****************************************************************************
  29. * Global preprocessor defines
  30. ******************************************************************************/
  31.  
  32. /* Mapping types. */
  33.  
  34. #define HALO_PLANAR_MAP      1
  35. #define HALO_SPHERICAL_MAP   2
  36. #define HALO_CYLINDRICAL_MAP 3
  37. #define HALO_BOX_MAP         4
  38.  
  39. /* Halo_Type flags */
  40.  
  41. #define HALO_NO_HALO        0
  42. #define HALO_CONSTANT       1
  43. #define HALO_LINEAR         2
  44. #define HALO_CUBIC          3
  45. #define HALO_POLY           4
  46. #define HALO_VOLUME_OBJECT  5
  47.  
  48. /* Rendering_Type flags */
  49.  
  50. #define HALO_EMITTING             0
  51. #define HALO_ATTENUATING          1
  52. #define HALO_GLOWING              2
  53. #define HALO_DUST                 3
  54. #define HALO_HAZE                 4
  55. #define HALO_VOLUME_RENDERED      5
  56. #define HALO_VOL_REND_WITH_LIGHT  6
  57.  
  58.  
  59. /*****************************************************************************
  60. * Global typedefs
  61. ******************************************************************************/
  62.  
  63.  
  64. /*****************************************************************************
  65. * Global variables
  66. ******************************************************************************/
  67.  
  68.  
  69.  
  70. /*****************************************************************************
  71. * Global functions
  72. ******************************************************************************/
  73.  
  74. void Do_Halo PARAMS((HALO *Halo, RAY *Ray, INTERSECTION *Ray_Intersection, COLOUR Colour, int Light_Ray_Flag));
  75. HALO *Create_Halo PARAMS((void));
  76. HALO *Copy_Halo PARAMS((HALO *Old));
  77. void Destroy_Halo PARAMS((HALO *Halo));
  78.  
  79. void Translate_One_Halo PARAMS((HALO *Halo, TRANSFORM *Trans));
  80. void Scale_One_Halo PARAMS((HALO *Halo, TRANSFORM *Trans));
  81. void Rotate_One_Halo PARAMS((HALO *Halo, TRANSFORM *Trans));
  82. void Transform_One_Halo PARAMS((HALO *Halo, TRANSFORM *Trans));
  83. void Transform_Halo PARAMS((HALO *Halo, TRANSFORM *Trans));
  84. void Transform_Halo_Container PARAMS((TEXTURE *Textures, TRANSFORM *Trans));
  85. void Rotate_Halo_Container PARAMS((TEXTURE *Textures, TRANSFORM *Trans));
  86. void Scale_Halo_Container PARAMS((TEXTURE *Textures, TRANSFORM *Trans));
  87. void Translate_Halo_Container PARAMS((TEXTURE *Textures, TRANSFORM *Trans));
  88.  
  89. void Post_Halo PARAMS((TEXTURE *Texture));
  90. #endif
  91.